tests: fail the build if symlinking tests/ostree fails
authorSimon McVittie <smcv@debian.org>
Sun, 26 Jun 2016 12:57:13 +0000 (13:57 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Sun, 26 Jun 2016 21:31:35 +0000 (21:31 +0000)
Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #367
Approved by: cgwalters

Makefile-tests.am

index 25b8202f98553e71c250a073759068171c205dc8..9be9061b79446b64587a16b484886c6c5d22e8cf 100644 (file)
@@ -245,7 +245,8 @@ ALL_LOCAL_RULES += tests/libreaddir-rand.so
 CLEANFILES += tests/libreaddir-rand.so tests/ostree-symlink-stamp tests/ostree
 
 tests/ostree-symlink-stamp: Makefile
-       @real_bin=`cd $(top_builddir) && ./libtool --mode=execute echo ostree`; \
+       @set -e; \
+       real_bin=`cd $(top_builddir) && ./libtool --mode=execute echo ostree`; \
        ln -sf "$${real_bin}" tests/ostree; \
        touch $@